package com.whub507.msgmanager.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.whub507.msgmanager.common.vo.UserVO;
import com.whub507.msgmanager.domain.User;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface UserMapper extends BaseMapper<User> {

    List<User> selectAllApproveByDepartment(String department);

    User selectById(Integer userId);

    Integer insertTheUser(User user);

    User selectByLoginName(String loginName);

    List<UserVO> selectUserStructure();

}
